<!DOCTYPE html>

<html>
<head>
    <style>
        .box {
            margin: 10px;
            height: 50px;
            width: 50px;
            background-color: green;
        }

        .before {
            background-color: red;
        }

        .sepia {
            margin: 50px;
            filter: sepia();
        }
    </style>

    <script src="../../resources/run-after-layout-and-paint.js"></script>
    <script>
        function repaintTest()
        {
            document.querySelector(".before").classList.remove("before");
        }
    </script>
</head>

<body onload="runAfterLayoutAndPaint(repaintTest, true)">

    <div class="sepia">
        <div class="box"></div>
        <div class="box before"></div>
        <div class="box"></div>
    </div>

</body>
</html>
